<table class="table table-striped table-condensed table-hover">
	<thead>
		<tr>
			<th style="width:30px">번호</th>
			<th style="width:100px">게시판</th>
			<th style="width:100px">카테고리</th>
			<th class="">제목</th>
			<th style="width:70px">글쓴이</th>
			<th style="width:80px">등록일</th>
		</tr>
	</thead>
	<tbody>
<?php
$cnt = count($rows);
if ($cnt == 0) {
?>
		<tr class="blank">
			<td colspan="5">No Values</td>
		</tr>
		
<?php
}
else {
	for ($i = 0; $i < count($rows); $i++) {
?>
		<tr data-href="<?php echo $href?>/<?php echo $kong->id ?>/article/<?php echo urlencode($rows[$i]['idx'])?>">
			<td><?php echo $rows[$i]['n']?></td>
			<td><?php echo $board[ $rows[$i]['board_id'] ]?></td>
			<td><?php echo (isset($category[ $rows[$i]['category_idx'] ])) ? $category[ $rows[$i]['category_idx'] ] : "미지정" ?></td>
			<td class="align-left"><?php echo $rows[$i]['subject']?> <span style="color:#aaa;font-size:8px">[<?php echo $rows[$i]['comment_num']?>]</span></td>
			<td><?php echo $rows[$i]['writer']?></td>
			<td><?php echo date("Y/m/d", $rows[$i]['reg_date'])?></td>
		</tr>
<?php
	}
}
?>
	</tbody>
</table>

<div class="pagination pagination-centered"><?php echo $pagination ?></div>

